home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / mkdir < prev    next >
Text File  |  2001-03-21  |  866b  |  27 lines

  1. Synopsis:
  2.    $mkdir(<directory> [<directory> ...])
  3.  
  4. Technical:
  5.    This function adds the following directories to the filesystem, using
  6.    the mkdir(3) library call.  The default permissions are 0777, minus
  7.    the current umask value.  Any number of directories may be created at
  8.    once.  Tilde-expansion is permitted.
  9.  
  10. Practical:
  11.    This function creates one or more new directories.  It is probably most
  12.    useful for script installers.  Make sure you set your umask correctly,
  13.    otherwise you may inadvertently create the directory with permissions
  14.    that allow anyone to write to it.
  15.  
  16. Returns:
  17.    > 0   number of directories that could not be created
  18.      0   success
  19.  
  20. Examples:
  21.    $mkdir(~/myscript)                probably returns "0"
  22.    $mkdir(~/myscript /etc/hackerz)   probably returns "1"
  23.  
  24. See Also:
  25.    chmod(6); rmdir(6); umask(6)
  26.  
  27.